package com.ldp.designpatterns.study.bridge.demo1.abstractClass;

import com.ldp.designpatterns.study.bridge.demo1.impl.Color;

/**
 * @ClassName Circle
 * @Description 桥接模式——// 抽象部分 - 实现类
 * @Author lindipei
 * @Date 2023/10/17 11:22
 */
public class Circle extends Shape{


    public Circle(Color color) {
        super(color);
    }

    @Override
    public void draw() {
        System.out.print("Drawing a circle. ");
        color.applyColor();
    }
}
